/**
 * 导航
 */
define(function (require) {
    'use strict';
    var $ = require('jquery');

    var environment = require('environment');

    var NavManager = require('/static_public/public_menu/navManager');

    return {
        init: function () {
            new NavManager($('#nav'), [
                {
                    'id': 'menu_home',
                    'code': '',
                    'name': '首页',
                    'level': 1,
                    'iconCls': 'icon-home',
                    'url': ['/page/wangcaibao/call_manage.shtml'],
                    'children': null
                },
                {
                    'id': 'menu_ditch_manage',
                    'code': '',
                    'name': '渠道管理',
                    'level': 1,
                    'iconCls': 'icon-ditchManage',
                    'url': '',
                    'cls': 'icon-fav',
                    'children': [
                        {
                            'id': 'menu_ditch_manage_5',
                            'code': '500701',
                            'name': '规则管理',
                            'level': 2,
                            'target': '_blank',
                            'url': [environment.qmyx + '/page/ditch/index.shtml?code=ruleSet']
                        },
                        {
                            'id': 'menu_ditch_manage_6',
                            'code': '500702',
                            'name': '判客分配',
                            'level': 2,
                            'target': '_blank',
                            'url': [environment.qmyx + '/page/ditch/index.shtml?code=guestAllot']
                        }
                    ]
                },
                {
                    'id': 'yun_callke',
                    'code': '503001',
                    'name': '云call客',
                    'level': 1,
                    'iconCls': 'icon-callke',
                    'url': '',
                    'cls': 'icon-fav',
                    'children': [
                        /*  {
                            'id': 'callke_menu_1',
                            'code': '',
                            'name': '案场参数配置',
                            'level': 2,
                            'url': ['/page/wangcaibao/call_setting.shtml']
                        },
                          {
                            'id': 'callke_menu_2',
                            'code': '',
                            'name': 'call客任务管理',
                            'level': 2,
                            'url': ['/page/wangcaibao/index.shtml']
                        },
                        {
                            'id': 'callke_menu_3',
                            'code': '',
                            'name': 'call客台账管理',
                            'level': 2,
                            'url': ['/page/wangcaibao/account_xike.shtml']
                        },*/
                        {
                            'id': 'callke_menu_4',
                            'code': '503001',
                            'name': '案场来电管理',
                            'level': 2,
                            'url': ['/page/wangcaibao/call_manage.shtml']
                        }
                    ]
                }
            ]);
        }
    };
});
